package com.hutao.manage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hutao.manage.pojo.MedicalResource;

public interface MedicalResourceMapper {


    int deleteByPrimaryKey(Integer id);

    int insert(MedicalResource record);

    int insertSelective(MedicalResource record);

    MedicalResource selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MedicalResource record);

    int updateByPrimaryKey(MedicalResource record);
    
    List<Map<String,Object>> getMedResourceByFirstLevelGuid(@Param("firstLevelGuid") String firstLevelGuid);
    
    MedicalResource selectByFirstGuidAndFileHash(@Param("fileHash") String fileHash,@Param("firstGuid") String firstGuid);
    
    //查询某份病案对应的所有文件
    List<String> selectScanFileListByFirstGuid(String firstGuid);
    
    int selectUnPageCount(@Param("firstGuid") String firstGuid);
    
    List<Map<String, Object>> getMedResourceByFirstGuidAndPageTypeId(@Param("firstGuid") String firstGuid, @Param("pageTypeId") Integer pageTypeId);
    
    List<Map<String, Object>> getMedResourceByFirstGuid(String firstGuid);
    
    
    
    
    
}